home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / lisp.319 < prev    next >
Text File  |  1992-02-06  |  1KB  |  24 lines

  1. documentation DL lisp
  2.  
  3. Q:  The Digital Librarian cannot find any lisp terms that contain asterisks.
  4.  
  5. A:  This revised script allows one to search for keys containing asterisks, as long as they are escaped (a backslash is inserted before each asterisk in the query).  In addition to the slashes that get inserted before *'s, this new sed script also removes leading package names of symbols before indexing them.  Thus COMMAND-LINE-ARGUMENT-COUNT is indexed as COMMAND-LINE-ARGUMENT-COUNT, not SYS:COMMAND-LINE-ARGUMENT-COUNT.
  6.  
  7. Replace the file /usr/lib/indexing/lispdoc-keys with these contents:
  8.  
  9. ----file starts here
  10. #!/bin/sh
  11. sed -n -f /usr/lib/indexing/lispdoc-sed $1 | sed -e 's/\*/\\\*/g' \
  12.     | sed -e '/..*:/s/..*:\(.*\)/\1/'
  13.  
  14. ---- file ends here
  15.  
  16. Now, you need to delete the old index in CommonLisp and rebuild it.  (The easiest way to do this is whether /NextLibrary/Documentation/CommonLisp is a target of Librarian.  See the documentation on Digital Librarian for more information.)
  17.  
  18. QA319
  19.  
  20. Valid for 1.0 
  21. Not checked yet for 2.0 
  22.  
  23.  
  24.